package com.i3q360.layui.modular.system.web;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.i3q360.layui.common.base.BaseController;
import com.i3q360.layui.common.util.PageInfo;
import com.i3q360.layui.modular.system.entity.SysPermission;
import com.i3q360.layui.modular.system.service.MenuService;

@Controller
public class WelcomeController extends BaseController{

	@Autowired
	MenuService menuService;
	
	@RequestMapping("/welcome")
	public String index(){
		
		return PREFIX+"welcome.html";
	}
	
//	@RequestMapping("/menu1")
//	public String menu1(Model model){
//		
//		//Sort sort = new Sort(Sort.Direction.ASC,"parentIds");
//		//model.addAttribute("menuList", menuService.queryList(sort));
//		return PREFIX+"menu1.html";
//	}
	
//	@RequestMapping("/menuPage")
//	@ResponseBody
//	public PageInfo<SysPermission> menuPage(@RequestParam Map<String,Object> map){
//		
////		Sort sort = new Sort(Sort.Direction.ASC,"parentIds");
////		return menuService.queryList(sort);
//		return  menuService.queryPage(map);
//	}

	@RequestMapping("/menu2")
	public String menu2(){
		
		return PREFIX+"menu2.html";
	}
	
	@RequestMapping("/admin-info")
	public String admininfo(){
		
		return PREFIX+"admin-info.html";
	}
	
	@RequestMapping("/article-add")
	public String articleadd(){
		
		return PREFIX+"article-add.html";
	}
	
	@RequestMapping("/article-detail")
	public String articledetail(){
		
		return PREFIX+"article-detail.html";
	}
	
	@RequestMapping("/article-list")
	public String articlelist(){
		
		return PREFIX+"article-list.html";
	}
	
	@RequestMapping("/column-danye-detail")
	public String columndanyedetail(){
		return PREFIX+"column-danye-detail.html";
	}
	
	@RequestMapping("/danye-detail")
	public String danyedetail(){
		
		return PREFIX+"danye-detail.html";
	}
	@RequestMapping("/danye-list")
	public String danyelist(){
		
		return PREFIX+"danye-list.html";
	}
	@RequestMapping("/email")
	public String email(){
		
		return PREFIX+"email.html";
	}
	
	@RequestMapping("/email-write")
	public String emailwrite(){
		
		return PREFIX+"email-write.html";
	}
	@RequestMapping("/menu-add")
	public String menuadd(){
		
		return PREFIX+"menu-add.html";
	}
	@RequestMapping("/menu-add2")
	public String menuadd2(){
		
		return PREFIX+"menu-add2.html";
	}
	@RequestMapping("/rbac-admin")
	public String rbacadmin(){
		
		return PREFIX+"rbac-admin.html";
	}
	@RequestMapping("/rbac-user-list")
	public String rbacuserlist(){
		
		return PREFIX+"rbac-user-list";
	}
	@RequestMapping("/system")
	public String system(){
		
		return PREFIX+"system.html";
	}
		
	
}
